<div class="box box-solid">
    <div class="box-body table-responsive no-padding">
        <form role="form" method="get" enctype="multipart/form-data">
            <input type="hidden" name="type" class="key" />
            <div class="box-footer">
                <button class="btn btn-primary sub_btn" data-key="category" type="submit">对接分类数据</button>
                <button class="btn btn-primary sub_btn" data-key="brand" type="submit">对接品牌数据</button>
                <button class="btn btn-primary sub_btn" data-key="goods" type="submit">对接商品数据</button>
                <button class="btn btn-primary sub_btn" data-key="stock" type="submit">对接库存数据</button>
            </div>
        </form>
    </div>
</div>
<script type="text/javascript">
    $(function(){
        $('.sub_btn').click(function(){
            $('.key').val($(this).data('key'));
        })
    })
</script>